Skip to content

Typescript Emby Components #7003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sakgoyal
Copy link

@sakgoyal sakgoyal commented Jul 3, 2025

  • use class components instead of functions

  • use proper custom web elements

  • will this work on older platforms or does this require using the webcomponents.js package

* use class components instead of functions
* use proper custom web elements

* will this work on older platforms or does this require using the `webcomponents.js` package
@sakgoyal sakgoyal requested a review from a team as a code owner July 3, 2025 04:35
@jellyfin-bot
Copy link
Collaborator

jellyfin-bot commented Jul 3, 2025

Cloudflare Pages deployment

Latest commit b469331
Status ✅ Deployed!
Preview URL https://779c69db.jellyfin-web.pages.dev
Type 🔀 Preview

View build logs

Copy link

sonarqubecloud bot commented Jul 3, 2025

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

Comment on lines +6 to +8
constructor() {
super();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless constructor. @typescript-eslint/no-useless-constructor

Suggestion(s) available:

Suggested change
constructor() {
super();
}

labelElement.classList.add('show-focus');
}

const labelTextElement = labelElement.querySelector('span')!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon. @stylistic/semi

Fix available:

Suggested change
const labelTextElement = labelElement.querySelector('span')!
const labelTextElement = labelElement.querySelector('span')!;

@sakgoyal
Copy link
Author

sakgoyal commented Jul 3, 2025

https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements

the examples always call super in the constructor. even if there is nothing else in there. so i'm not sure if it can be removed like eslint says, or it is required.

they keycode deprecation has always been there. I didn't change that part

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants